package part14_迭代器模式_统一遍历问题;

import java.util.Iterator;

/**
 * @ClassName: Colleage
 * @Author: AllenSun
 * @Date: 2020/3/8 12:10
 */
public interface Colleage {
    public String getName();

    //增加方法
    public void addDepartment(String name, String desc);

    //一个迭代器，实现遍历
    public Iterator createIterator();
}
